package com.example.abc;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user);
        TextView userTextView;
        TextView passwordTextView;
        TextView ageTextView;
        TextView nickTextView;
        userTextView = findViewById(R.id.userTextView);
        passwordTextView = findViewById(R.id.passwordTextView);
        ageTextView = findViewById(R.id.ageTextView);
        nickTextView = findViewById(R.id.nickTextView);

        yh yh = glq.getUser(this, getIntent().getStringExtra("user"));

        userTextView.setText(yh.getYhm());
        passwordTextView.setText(yh.getMm());
        ageTextView.setText(String.valueOf(yh.getNl()));
        nickTextView.setText(yh.getXm());
    }
}